﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IBusinessLogicLayer
{
    public interface IBaseBll<T> where T:class
    {
        bool Insert(T t);
        bool Update(Expression<Func<T, bool>> match, Expression<Func<T, T>> t);
        bool Delete(Expression<Func<T,bool>> condition);
        ICollection<T> Find(Expression<Func<T, bool>> match);
        T FindSingle(Expression<Func<T, bool>> match);
        IQueryable<T> GetQueryable();
    }
}
